<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 2018/9/9
  Time: 19:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Input</title>
</head>
<body>
<%
    //    request.setAttribute("theme", "simple");
%>
<h4 style="color: green">New Employee</h4>
<s:form action="emp-save" theme="xhtml">
    <s:textfield name="name" label="Name"/>
    <s:password name="password" label="Password"/>
    <s:radio list="#{1:'Male',0:'Female'}" label="Gender" name="gender"/>
    <s:select list="#request.depts" listKey="deptId" listValue="deptName" name="dept" label="Department"/>
    <s:checkboxlist list="#request.roles" listKey="roleId" listValue="roleName" label="Role" name="roles"/>
    <s:textarea label="Desc" name="desc"/>
    <s:submit label="Submit"/>
</s:form>
</body>
</html>
